from app import db

class User(db.Model):
    __tablename__ = 'user'  # 设置表名
    id = db.Column(db.Integer, primary_key=True)  # 主键
    username = db.Column(db.String(64), unique=True)  # 字段nickname
    password = db.Column(db.String(11), nullable=True)  # 字段pwd